package org.example.springdemo4;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.example.springdemo4.service.LoginService;

@SpringBootApplication
public class SPringdemo4Application {

    public static void main(String[] args) {
        ConfigurableApplicationContext context
        =SpringApplication.run(SPringdemo4Application.class, args);
        context.getBean(LoginService.class).login();
    }

}
